package cn.tuling.order.feign;

import cn.tuling.order.po.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "seata-account-service", path = "/account")
public interface AccountService {

    @PutMapping("/debit")
    public Boolean debit(@RequestBody Order order);
}
